package com.dobby.pea.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import javax.swing.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
 * 商品
 * @author Dobby
 * @version 1.0
 */

@Data
public class tbGood implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id ;

    //商品名
    private String name;

    //类别id
    private Long typeId;

    //价格
    private BigDecimal price;


    //图片
    private String image;

    //商品描述
    private String description;

    //商品状态
    private int status;

    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    //更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    //创建人
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    //修改人
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;

    //是否删除
    private int isDeleted;


}
